package com.qy139.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author hjl
 * @since 2021-12-04
 */
@Api("座位实体类")
@Data
@EqualsAndHashCode(callSuper = false)
public class Seat implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @ApiModelProperty("座位ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 座位编号
     */
    @ApiModelProperty("座位编号")
    private String seatId;

    /**
     * 自习室编号
     */
    @ApiModelProperty("自习室编号")
    private Integer roomId;

    /**
     * 座位状态 0正常 1故障
     */
    @ApiModelProperty("座位状态 0正常 1故障")
    private Integer status;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createtime;

    /**
     * 更新时间
     */
    @ApiModelProperty("更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updatetime;

    @ApiModelProperty("自习室实体")
    @TableField(exist = false)
    private Room rooms;
    @TableField
    private  Integer seatcount;
}
